home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue24 / appbar11 / APPBAR11.ZIP / DEMO.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-07-02  |  647 b   |  36 lines

  1. unit Demo;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Buttons, StdCtrls, ExtCtrls, AppBar;
  8.  
  9. type
  10.   TDemoBar = class(TAppBar)
  11.     btnProperties: TBitBtn;
  12.     procedure btnPropertiesClick(Sender: TObject);
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.   end;
  18.  
  19. var
  20.   DemoBar: TDemoBar;
  21.  
  22. implementation
  23.  
  24. uses DemoProp;
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TDemoBar.btnPropertiesClick(Sender: TObject);
  29. begin
  30.   if PropDlg.ShowModal = mrOk then UpdateBar;
  31. end;
  32.  
  33. initialization
  34.   SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
  35. end.
  36.